package com.mcr.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mcr.reggie.dto.OrdersDto;
import com.mcr.reggie.entity.Orders;
import com.mcr.reggie.entity.ShoppingCart;

import java.util.List;

public interface OrdersService extends IService<Orders> {
    /**
     * 用户下单
     */
    public void submit(Orders orders);

    public Page getPage(Integer page, Integer pageSize, String number, String beginTime, String endTime);

    public void updateStatus(Orders orders);

    Page<OrdersDto> getNewOrder(Integer page, Integer pageSize);

    void submitAgain(Long id);
}
